<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class UserLogin extends Model
{
    protected $table = 'user_logins';

    protected $fillable = ['user_id','user_ip','location','details'];
    public function user()
    {
        return $this->belongsTo(User::class)->withDefault();
    }

}
